<?php

namespace addons\member\model;

/**
 * Description of MemberArea
 *
 * @author
 */
class MemberArea extends \web\common\model\BaseModel{
    
    protected function _initialize() {
        $this->tableName = 'member_area';
    }


    public function getDataList($pageIndex = -1, $pageSize = -1, $filter = '',$fileds='*', $order = 'id desc') {
        $sql = 'select m.*,a.name from '.$this->getTableName() . ' m left join tp_area a on a.id=m.area_id where 1=1 and '.$filter;
        return $this->getDataListBySQL($sql, $pageIndex, $pageSize, $order);
    }
}
